package com.liangjie.fanxing;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class School<E> {
	private List<E> list = new ArrayList<E>();

	public void addMember(E e) {
		list.add(e);
	}

	public void removeMember(E e) {
		list.remove(e);
	}

	/*public void updateMember(int id, E e) {
		list.set(, e);
	}*/

	public void printMember() {
		Iterator<E> it = list.iterator();

		while (it.hasNext()) {
			System.out.println(it.next());
		}

	}
}
